<!doctype html>
<html lang="en">
<head>
    <title>SQLMan</title>
    <meta charset="UTF-8"/>
    <meta name="description" content="A easy, small, straight forward Java CRUD Helper"/>
    <meta name="keywords" content="SqlMan, document, java sql, java jdbc, java orm, jdbc tools, jdbc helper"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"/>
    <script src="https://g.alicdn.com/code/lib/vue/2.7.16/vue.min.js"></script>
    <link rel="stylesheet" href="https://framework.ajaxjs.com/static/font/font.css"/>
    <link rel="stylesheet" href="/style/index.css"/>
    <link rel="icon" type="image/png" href="/asset/favicon.png"/>
    <script src="/asset/js/website.js"></script>
    <link rel="stylesheet" href="/style/reset.css"/>
    <style>
      .content {
        padding: 20px;
        line-height: 1.8;
      }
      .features {
        width: 45%;
      }
      .features ul {
        list-style-type: square;
        padding-left: 20px;
      }
      :root {
        --primary-color: #2563eb;
        --secondary-color: #1e40af;
        --text-color: #1f2937;
        --bg-color: #ffffff;
        --gray-light: #f3f4f6;
      }
      .feature-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
      }
      .feature-card {
        background: var(--gray-light);
        padding: 2rem;
        border-radius: 0.5rem;
      }
      .color-scheme-drak .feature-card {
        background-color: #b6b6b6;
        color: #474747;
      }
      .feature-card h3 {
        margin-bottom: 1rem;
      }
      @media(max-width: 768px) {
        .nav-links {
          display: none;
        }
        .hero h1 {
          font-size: 3rem;
        }
        section {
          padding: 3rem 5%;
        }
      }

    </style>
</head>
<body class="">
<header class="top">
    <a class="github-fork-ribbon" href="https://github.com/lightweight-component/SqlMan" data-ribbon="Fork me on GitHub"
       title="Fork me on GitHub">Fork me on GitHub</a>
    <div>
        <nav>

            <div id="tools">
                <div class="locales-btn" onmousemove="document.querySelector('#tools menu').classList.add('show')"
                     onmouseleave="document.querySelector('#tools menu').classList.remove('show')">
                    <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewBox="0 0 24 24" style="max-width: 42px;">
                        <path d="M0 0h24v24H0z" fill="none"></path>
                        <path
                                d=" M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z "
                                class="css-c4d79v"></path>
                    </svg>
                    <menu onmousemove="document.querySelector('#tools menu').classList.add('show')"
                          onmouseleave="document.querySelector('#tools menu').classList.remove('show')">
                        <ul>
                            <li><a href="https://sqlman.ajaxjs.com">English »</a></li>
                            <li><a href="https://sqlman.ajaxjs.com/cn-s">简体中文 »</a></li>
                            <li><a href="https://sqlman.ajaxjs.com/cn">正体中文 »</a></li>
                        </ul>
                    </menu>
                </div>
                <my-switch v-model="isDark"></my-switch>
            </div>
            <ul>
                <li><a href="/index.html">Home</a></li>
                <li><a href="/docs">Documents</a></li>
                <li><a href="/blog">Blog</a></li>
                <li><a href="https://github.com/lightweight-component/SqlMan" target="_blank">SourceCode</a></li>
            </ul>

        </nav>

        <div class="img">
            <img id="main-img" src="/asset/img.jpg" width="500" alt=""/>
            <div>This has nothing to do with the "Dragon Ball";<br/> I just happen to be a fan of this comic.</div>
        </div>
        <div class="text">
            <h1>Welcome to SqlMan!</h1>
            <h2>A easy, small, straight forward Java CRUD Helper.</h2>
            <p>SqlMan is a lightweight wrapper over JDBC. It is NOT an ORM but follows a SQL-first approach. It allows
                you
                to use pure SQL with IF/forEach and pass Map parameters for queries or executions. The results you
                receive
                are either 'isOk' indicators and 'Map' or Java Bean object(s). SqlMan enables fast CRUD database
                operations
                with ZERO dependencies, except for the JDK.
            </p>

            <br/>
            <br/>
            <p>Similar libraries：Spring JDBC Template, Apache Commons DbUtils, Jdbi3.</p>

            <br/>
            <br/>
            <button class="primary" onclick="location.assign('/docs/quick-start')">Getting Start</button>
            <button onclick="window.open('https://github.com/lightweight-component/SqlMan')">Git Code</button>
        </div>

    </div>
</header>
<div class="content main">
    <section id="features">
        <h1>Design Philosophy</h1>
        <div class="feature-grid">
            <div class="feature-card">
                <h3>Small/Restraint</h3>
                <p>Simple philosophy, easy to understand the whole package quickly. Minimal introduction of third-party dependencies.</p>
            </div>
            <div class="feature-card">
                <h3>Carefully Designed API</h3>
                <p>Elegant API invocation, reuse of common concepts, consistent usage, and reduced learning curve.</p>
            </div>
            <div class="feature-card">
                <h3>Fast</h3>
                <p>Minimal object creation, efficient database operations. No magic behind the scenes, straightforward execution</p>
            </div>
            <div class="feature-card">
                <h3>Open</h3>
                <p>100% Open Source with full documentation, commments, unit tests. Community-driven development.</p>
            </div>
        </div>
    </section>
    <div class="features" style="float:left">
        <br/>
        <h2>Some of the advantages of using SqlMan are:</h2>
        <ul>
            <li>Familiar way for you:
                <ul>
                    <li>
                        <code>sql().input('SELECT * FROM table WHERE id=?', 1).query()</code>
                    </li>
                    <li>Multiple lines of SQL written in XML</li>
                    <li>
                        <code>@Insert</code>,
                        <code>@Update</code>,
                        <code>@Delete</code>,
                        <code>@Query</code>
                        annotations
                    </li>
                    <li>Automatically populate JavaBean properties from ResultSets.</li>
                </ul>
            </li>
            <li>Core philosophy centers around SQL. Enhanced SQL logic, supporting dynamic SQL (IF/ForEach).</li>
            <li>Built-in common CRUD/Paging functionality.</li>
            <li>Offers a rich set of extension features.</li>
        </ul>
    </div>
    <div class="features" style="float:right">
        <br/>
        <h2>SqlMan is NOT:</h2>
        <ul>
            <li>An Object/Relational bridge.</li>
            <li>Does not provide a functional-style chained call.</li>
            <li>A heavyweight framework of any kind.</li>
        </ul>
    </div>
    <div style="clear:both;text-align:center">
        <br/>
        <h2>Source Code</h2>
        <p>Under GNU GENERAL PUBLIC LICENSE v3.0.</p>
        <a href="https://github.com/lightweight-component/SqlMan">Github</a>
        |
        <a href="https://gitcode.com/lightweight-component/SqlMan">Gitcode</a>
        <div>
            <a href="https://sqlman.ajaxjs.com">Website</a>
            |
            <a href="https://sqlman.ajaxjs.com/docs">Documents</a>
            |
            <a href="https://github.com/lightweight-component/SqlMan">JavaDoc</a>
        </div>
    </div>
</div>
<footer>
    SqlMan, a part of <a href="https://framework.ajaxjs.com" target="_blank">AJ-Framework</a> open source. Mail:
    frank@ajaxjs.com, visit <a href="https://blog.csdn.net/zhangxin09" target="_blank">my blog(In Chinese)</a>.
    <br/>
    <br/>
    Copyright © 2025 Frank Cheung. All rights reserved.
    <script>
        var _hmt = _hmt || [];
        (function() {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?3cb62106ad945fc91efddfe250e1542e";
          var s = document.getElementsByTagName("script")[0];
          s.parentNode.insertBefore(hm, s);
        })();

    </script>
</footer>
</body>
</html>